package my.design.concretehandle;

import my.design.abshandle.AbstractHandle;

/**
 * @Author: BuYee
 * @Date: 2022/9/1
 */
public class CEOHandle extends AbstractHandle {
    @Override
    public void dealIt(int fee) {
        if (fee > 500) {
            System.out.println("主管已审批，金额：" + fee);
        } else {
            if (nextHandler != null) {
                nextHandler.dealIt(fee);
            }
        }
    }
}
